<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>就业信息系统</title>
    <link rel="stylesheet" type="text/css" href="/static/admin/css/reset.css">
    <link rel="stylesheet" type="text/css" href="/static/admin/css/main.css">
    <link rel="stylesheet" href="/static/admin/css/jquery.pagination.css">
    <script type="text/javascript" src="/static/admin/js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="/static/admin/js/jquery.pagination.min.js"></script>
    <script type="text/javascript" src="/static/index/js/index.js"></script>
</head>
<body>
<div class="breadcrub">
    当前位置：就业信息管理>就业信息
    <form class="news_filter_form">
        <input type="text" placeholder="请输入关键字" class="input_txt">
        <input type="submit" value="搜 索" class="input_sub">
    </form>
</div>


<div class="pannel">
    <table class="common_table">
        <tr>
            {#					<th width="5%">id</th>#}
            {#					<th width="70%">标题</th>#}
            {#					<th width="15%">发布时间</th>#}
            {#					<th width="10%">管理操作</th>#}
            <th>职位名称</th>
            <th>招聘性质</th>
            <th>薪资范围</th>
            <th>学历要求</th>
            <th>工作地点</th>
            <th>招聘人数</th>
            <th>招聘公司</th>
            {#            <th>发布日期</th>#}
            <th>专业要求</th>
            <th>操作</th>
        </tr>
        {% for job in jobs %}
            <tr>
                <td>{{ job.name }}</td>
                <td class="tleft">{{ job.nature }}</td>
                <td>{{ job.salary }}</td>
                <td>{{ job.degree_required }}</td>
                <td>{{ job.location }}</td>
                <td>{{ job.number }}</td>
                <td>{{ job.company }}</td>
                {#                <td>{{ job.create_time }}</td>#}
                <td>{{ job.request }}</td>
                <td>
                    <span id="update" class="update" style="cursor: pointer"><a
                            href="/changejob/{{ job.id }}/">修改</a></span>
                    <span id="delete" class="delete" style="cursor: pointer" value="{{ job.id }}">删除</span>
                    {#                    <a href="/changejob/{{ job.id }}/" class="edit">修改</a>#}
                    {#                    <a href="/deletejob_info/{{ job.id }}/" class="edit">删除</a>#}
                    {#                    <a href="" class="edit" id="delete" value="{{ job.id }}">删除</a>#}
                </td>
            </tr>


        {% endfor %}
        {#				<tr>#}
        {#					<td>2</td>#}
        {#					<td class="tleft">日本史上最大IPO之一要来了：软银计划将手机业务分拆上市</td>#}
        {#					<td>2018-3-5 21:39:05</td>#}
        {#					<td>#}
        {#						<a href="news_edit_detail.html" class="edit">编辑</a>#}
        {#					</td>#}
        {#				</tr>					#}
        {#				<tr>#}
        {#					<td>3</td>#}
        {#					<td class="tleft">日本史上最大IPO之一要来了：软银计划将手机业务分拆上市</td>#}
        {#					<td>2018-3-5 21:39:05</td>#}
        {#					<td>#}
        {#						<a href="news_edit_detail.html" class="edit">编辑</a>#}
        {#					</td>#}
        {#				</tr>#}
        {#				<tr>#}
        {#					<td>4</td>#}
        {#					<td class="tleft">日本史上最大IPO之一要来了：软银计划将手机业务分拆上市</td>#}
        {#					<td>2018-3-5 21:39:05</td>#}
        {#					<td>#}
        {#						<a href="news_edit_detail.html" class="edit">编辑</a>#}
        {#					</td>#}
        {#				</tr>#}
        {#				<tr>#}
        {#					<td>5</td>#}
        {#					<td class="tleft">日本史上最大IPO之一要来了：软银计划将手机业务分拆上市</td>#}
        {#					<td>2018-3-5 21:39:05</td>#}
        {#					<td>#}
        {#						<a href="news_edit_detail.html" class="edit">编辑</a>#}
        {#					</td>#}
        {#				</tr>#}
        {#				<tr>#}
        {#					<td>6</td>#}
        {#					<td class="tleft">日本史上最大IPO之一要来了：软银计划将手机业务分拆上市</td>#}
        {#					<td>2018-3-5 21:39:05</td>#}
        {#					<td>#}
        {#						<a href="news_edit_detail.html" class="edit">编辑</a>#}
        {#					</td>#}
        {#				</tr>#}
        {#				<tr>#}
        {#					<td>7</td>#}
        {#					<td class="tleft">日本史上最大IPO之一要来了：软银计划将手机业务分拆上市</td>#}
        {#					<td>2018-3-5 21:39:05</td>#}
        {#					<td>#}
        {#						<a href="news_edit_detail.html" class="edit">编辑</a>#}
        {#					</td>#}
        {#				</tr>#}
        {#				<tr>#}
        {#					<td>8</td>#}
        {#					<td class="tleft">日本史上最大IPO之一要来了：软银计划将手机业务分拆上市</td>#}
        {#					<td>2018-3-5 21:39:05</td>#}
        {#					<td>#}
        {#						<a href="news_edit_detail.html" class="edit">编辑</a>#}
        {#					</td>#}
        {#				</tr>#}
        {#				<tr>#}
        {#					<td>9</td>#}
        {#					<td class="tleft">日本史上最大IPO之一要来了：软银计划将手机业务分拆上市</td>#}
        {#					<td>2018-3-5 21:39:05</td>#}
        {#					<td>#}
        {#						<a href="news_edit_detail.html" class="edit">编辑</a>#}
        {#					</td>#}
        {#				</tr>#}
        {#				<tr>#}
        {#					<td>10</td>#}
        {#					<td class="tleft">日本史上最大IPO之一要来了：软银计划将手机业务分拆上市</td>#}
        {#					<td>2018-3-5 21:39:05</td>#}
        {#					<td>#}
        {#						<a href="news_edit_detail.html" class="edit">编辑</a>#}
        {#					</td>#}
        {#				</tr>#}
        <tr>
            <td>
                <a href="/addjob" class="edit">添加</a>
            </td>
        </tr>

    </table>
    {#    <input type="button" value="添加" style="float: right;">#}

</div>


<div class="box">
    <div id="pagination" class="page"></div>
</div>

<script>
    $(function () {
        $("#pagination").pagination({
            currentPage: {{ paginate.page }},
            totalPage: {{ paginate.pages }},
            callback: function (current) {
                {#alert('ok!');#}
                window.location.href = "?page=" + current;
            }
        });
    });
</script>

<script>
    $(function () {
        //点击发送ajax请求
        $('.delete').click(function () {
            var id = $(this).attr("value");

            {#job_category = $('.input_txt2').val();#}
            {#job_experience = $('.input_txt3').val();#}
            {#job_monthly_pay = $('.input_txt4').val();#}
            {#job_education = $('.input_txt5').val();#}
            {#job_address = $('.input_txt6').val();#}
            {#job_count = $('.input_txt7').val();#}
            {#create_time = $('.input_txt8').val();#}
            {#job_major = $('.input_txt9').val();#}


            $.ajax({
                url: "/deletejob_info/" + id + "/",
                type: "post",
                contentType: "application/json",
                // 响应数据的格式
                dataType: "json",
                {#data: JSON.stringify(params),#}
                success: function (resp) {
                    if (resp.code == "0") {
                        // 刷新当前界面
                        {#history.go(-1);#}
                        location.reload();
                    } else {
                        alert(resp.errmsg);
                        {#$("#register-err").html(resp.errmsg);#}
                        {#$("#register-err").show();#}
                        {#$(".get_pic_code").attr("src", "/member/image_code?id=" + Math.random())#}
                    }
                }
            })
        });
    })
</script>


</body>
</html>